<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="entity.Person"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Update a Person Record</title>
    </head>
    <body>
        <h1>Update a Person record</h1>
        <form id="updatePersonForm" action="UpdatePerson" method="post">
            <input type="hidden" id = "updateId" name="id" value="${person.getId()}"/>
            <table>
                <tr><td>Login : </td><td><input type="text" id = "login" name="login" value="${person.getLogin()}"/></td></tr>
                <tr><td>Password : </td><td><input type="password" id = "password" name="password" value="${person.getPassword()}"/></td></tr>
            </table>
            <input type="submit" id="UpdateRecord" value="UpdateRecord" />
        </form>

        <form id="deletePersonForm" action="DeletePerson" method="post">
            <input type="hidden" id = "deleteId" name="id" value="${person.getId()}"/>
            <input type="submit" id="DeleteRecord" value="DeleteRecord" />
        </form>
        <a href="ListPerson"><strong>Go to List of persons</strong></a>
    </body>
</html>